package cn.itcast.nems.oldems.dao.mapper;

import cn.itcast.nems.oldems.dao.dataobject.StudentClazzInfoDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface StudentJoinClassMapper extends BaseMapper<StudentClazzInfoDO> {

    /**
     * 查询老EMS学籍ID
     * @param studentId 学员ID
     * @param clazzId 班级ID
     * @return 学籍ID
     */
    Integer selectStudentJoinClassId(@Param("studentId") Integer studentId,
                                     @Param("clazzId") Integer clazzId);

    Integer selectStudentJoinClassId2(@Param("studentId") Integer studentId,
                                     @Param("clazzId") Integer clazzId,
                                      @Param("nature") String nature);
}
